package io.zhifei.modules.sys.system.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.zhifei.modules.sys.system.entity.LogisticsEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @ClassNameSysLogisticsDao
 * @Description
 * @Author
 * @Date2020/11/25 15:40
 * @Version V1.0
 **/
@Mapper
public interface SysLogisticsDao extends BaseMapper<LogisticsEntity> {
    /***
     * 获取物流管理列表
     * @param page
     * @param hairName
     * @param taskName
     * @param oddNumber
     * @return
     */
    Page<Map<String, Object>> logisticsList(Page page, @Param("hairName") String hairName,
                                            @Param("takeName") String takeName,
                                            @Param("oddNumbers") List<String> oddNumbers);

    /***
     * 修改订单中物流编号
     * @param oddNumber
     * @param tel
     * @return
     */
    int updateOrderNumber(@Param("oddNumber") String oddNumber,
                          @Param("tel") String tel);

    /***
     * 查询订单编号是否存在
     * @param oddNumber
     * @return
     */
    int numberCount(String oddNumber);
}
